Objects Reference

stripfan_mesh::add_stripfan

Prototype

vertex *add_stripfan(int nvert,int texpic,int lmpic)

Parameters

Parameter Type Description
nvert int number of vertices to add
texpic int texture picture for this strip/fan
lmpic int light map for this strip/fan

Return Value

Return the pointer to the actual vertices added for the strip/fan.

Remarks

This function adds a new strip or fan to the mesh. If nvert is positive, it means a strip, if negative, means a fan.
Each strip/fan can have its own texture and light map. If strip has no texture or no light map, use -1 for the texture or light map parameter.
You must fill the strip vertices (position, color, texture co-ordinate and light map co-ordinate) using the returned pointer. It points to an array of vertices of size abs(nvert).